<?php

namespace App\Livewire;

use Livewire\Attributes\Title;
use Livewire\Component;

class Archive extends Component
{
    public $year;

    public function mount($year = null)
    {
        $this->year = $year;
    }

    #[Title('归档')]
    public function render()
    {
        return view('livewire.archive', [
            'year' => $this->year
        ]);
    }
}
